<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:set var="count" value="${fn:length(result.result)}" />
{
	total: ${result.totalCount},
	rows: [
		<c:forEach var="task" items="${result.result}" varStatus="status">
		{
			id: "${task.id}",
			processInstanceId: "${task.processInstance.id}",
			processInstanceName: "${task.processInstance.name}",
			activity: "${task.unitName}",
			status: "${task.status}",
			activationTime: "<fmt:formatDate value="${task.activationTime}" type="both" pattern="yyyy-MM-dd HH:mm" />",
			closeTime: "<fmt:formatDate value="${task.closeTime}" type="both" pattern="yyyy-MM-dd HH:mm" />",
			assigners: "${task.assigners}",
			operator: "${task.operator}",
			action: "${task.action}",
			process: "${task.processInstance.processName}",
			processVersion: "${task.processInstance.processVersion}"
		}
		<c:if test="${status.index < count - 1}">,</c:if>
		</c:forEach>
	]
}